From 8d2411210901b3f6c741ba62ebe59b99b4afea6b Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Mon, 10 Oct 2016 12:38:39 +0100 Subject: [PATCH] compatibility with glibc-2.23 inspired by the Ubuntu patch in 0.13-0ubuntu1 Gbp-Pq: Name glibc-2.23.patch --- lib/kernel/vecmathlib/floattypes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/kernel/vecmathlib/floattypes.h b/lib/kernel/vecmathlib/floattypes.h index fa4cc44..97c0738 100644 --- a/lib/kernel/vecmathlib/floattypes.h +++ b/lib/kernel/vecmathlib/floattypes.h @@ -39,6 +39,7 @@ using namespace std; __attribute__((__unused__)) #endif +#if !defined(__GLIBC__) || (__GLIBC__ == 6 && __GLIBC_MINOR__ < 23) // Capture libc macros, then undefine them #ifndef isfinite #error "isfinite is not a macro" @@ -55,6 +56,7 @@ using namespace std; #ifndef signbit #error "signbit is not a macro" #endif +#endif namespace { template inline int libc_isfinite(T x) { return isfinite(x); } -- 2.30.2